package com.hstcs.creator;

import com.badlogic.ashley.core.Entity;
import com.hstcs.components.CameraComponent;
import com.hstcs.game.God;
import com.hstcs.systmes.RenderingSystem;

public class CameraCreator implements EntityCreator {

	static  public  void create(Entity target){
		Entity entity = new Entity();
		
		CameraComponent camera = new CameraComponent();
		camera.camera = God.instance.engine.getSystem(RenderingSystem.class).getCamera();
		camera.target = target;
		
		entity.add(camera);
		God.instance.engine.addEntity(entity);
		
	}
}
